package org.mirim.nmt;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class StartGame1 extends Activity implements OnClickListener{
	private static final int CALL_REQUEST=123;
	static int lev111=0; 
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.startgame1);
	    
	        ImageButton lev1=(ImageButton)findViewById(R.id.btn_lev1_1);
	        lev1.setOnClickListener(this); //lev1
	     
	        ImageButton lev2=(ImageButton)findViewById(R.id.btn_lev1_2);
	        lev2.setOnClickListener(this); //lev2  
	        
	        ImageButton lev3=(ImageButton)findViewById(R.id.btn_lev1_3);
	        lev3.setOnClickListener(this); //lev3  
	        
	        ImageButton lev4=(ImageButton)findViewById(R.id.btn_lev1_4);
	        lev4.setOnClickListener(this); //lev4  
	         
	        ImageButton lev5=(ImageButton)findViewById(R.id.btn_lev1_5);
	        lev5.setOnClickListener(this); //lev5  
	        
	        ImageButton lev6=(ImageButton)findViewById(R.id.btn_lev1_6);
	        lev6.setOnClickListener(this); //lev6  
	        
	        ImageButton lev7=(ImageButton)findViewById(R.id.btn_lev1_7);
	        lev7.setOnClickListener(this); //lev6  
	        
	        ImageButton lev8=(ImageButton)findViewById(R.id.btn_lev1_8);
	        lev8.setOnClickListener(this); //lev6  
	        
	        ImageButton lev9=(ImageButton)findViewById(R.id.btn_lev1_9);
	        lev9.setOnClickListener(this); //lev6  
	        
	        ImageButton lev10=(ImageButton)findViewById(R.id.btn_lev1_10);
	        lev10.setOnClickListener(this); //lev6  
	        
	        ImageButton lev11=(ImageButton)findViewById(R.id.btn_lev1_11);
	        lev11.setOnClickListener(this); //lev6  
	        
	        ImageButton lev12=(ImageButton)findViewById(R.id.btn_lev1_12);
	        lev12.setOnClickListener(this); //lev2  
	        
	        ImageButton lev13=(ImageButton)findViewById(R.id.btn_lev1_13);
	        lev13.setOnClickListener(this); //lev3  
	        
	        ImageButton lev14=(ImageButton)findViewById(R.id.btn_lev1_14);
	        lev14.setOnClickListener(this); //lev4  
	        
	        ImageButton lev15=(ImageButton)findViewById(R.id.btn_lev1_15);
	        lev15.setOnClickListener(this); //lev5  
	        
	        ImageButton lev16=(ImageButton)findViewById(R.id.btn_lev1_16);
	        lev16.setOnClickListener(this); //lev6  
	        
	        ImageButton lev17=(ImageButton)findViewById(R.id.btn_lev1_17);
	        lev17.setOnClickListener(this); //lev6  
	        
	        ImageButton lev18=(ImageButton)findViewById(R.id.btn_lev1_18);
	        lev18.setOnClickListener(this); //lev6       
	        
	        ImageButton lev19=(ImageButton)findViewById(R.id.btn_lev1_19);
	        lev19.setOnClickListener(this); //lev6       
	        
	        ImageButton lev20=(ImageButton)findViewById(R.id.btn_lev1_20);
	        lev20.setOnClickListener(this); //lev6       
	        
	        ImageButton lev21=(ImageButton)findViewById(R.id.btn_lev1_21);
	        lev21.setOnClickListener(this); //lev6       
	        
/*	        ImageButton lev22=(ImageButton)findViewById(R.id.btn_lev1_22);
	        lev22.setOnClickListener(this); //lev6       
	        
	        ImageButton lev23=(ImageButton)findViewById(R.id.btn_lev1_23);
	        lev23.setOnClickListener(this); //lev6       
*/	        
	        
	        
	        
	}
	public void onClick(View v) {
		switch (v.getId()) {
		
		case R.id.btn_lev1_1:{ lev111=1;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("1", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_2:{ lev111=2;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("2", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_3:{ lev111=3;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("3", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_4:{ lev111=4;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("4", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_5:{ lev111=5;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("5", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_6:{ lev111=6;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("6", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_7:{ lev111=7;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("7", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_8:{ lev111=8;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("8", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_9:{ lev111=9;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("9", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_10:{ lev111=10;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("10", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_11:{ lev111=11;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("11", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_12:{ lev111=12;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("12", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_13:{ lev111=13;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("13", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_14:{ lev111=14;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("14", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_15:{ lev111=15;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("15", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_16:{ lev111=16;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("16", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_17:{ lev111=17;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("17", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_18:{ lev111=18;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("18", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_19:{ lev111=19;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("19", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_20:{ lev111=20;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("20", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	
		case R.id.btn_lev1_21:{ lev111=21;	Intent intent=(new Intent(StartGame1.this,Level1.class));
								intent.putExtra("21", lev111);	startActivityForResult(intent, CALL_REQUEST); break;}	

		}
	}
}